<template>
  <a-popconfirm
    title="Are you sure delete this task?"
    ok-text="Yes"
    cancel-text="No"
    @confirm="confirm"
  >
    <a href="#">删除</a>
  </a-popconfirm>
</template>
<script>
import { defineComponent } from 'vue';
import { message } from 'ant-design-vue';
export default defineComponent({
  setup() {
    const confirm = e => {
      console.log(e);
      message.warning("访客无权进行该操作")
    };


    return {
      confirm,
    };
  },

});
</script>